<?php

namespace App\Models;

/**
 * App\Models\SpiderOriginal
 * This is the model class for table "spider_original".
 *
 * @property int $id 自增ID
 * @property string $name 名称
 * @property string $base_url 基础链接
 * @property string $script_name 脚本名称
 * @property int $status 是否启用，0禁用，1启用
 * @property int $is_deleted 是否删除，0正常，1删除
 * @property int $created_at 创建时间戳
 * @property int $updated_at 更新时间戳
 * @method static \Illuminate\Database\Eloquent\Builder|SpiderOriginal newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|SpiderOriginal newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|SpiderOriginal query()
 */
class SpiderOriginal extends BaseModel
{

    protected $table = "spider_original";
    protected $primaryKey = "id";
    protected $keyType = "int";
    public $timestamps = true;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [];

    /**
     * select columns
     * @var array
     */
    public $fields = [
        'article' => ['user_id as id', 'nickname', 'avatar'],
    ];


}
